package com.pingxx.demo.req;

import com.pingxx.demo.validation.Phone;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.Min;

@Data
@EqualsAndHashCode(callSuper = false)
public class UserRegisterReq extends BaseReq {

    @Email
    private String email;

    @Phone
    private String phone;

    @Min(1)
    private Integer age;

    private String sex;
}
